import request from '@/utils/request.js'

export function getOrdersPage(params,data) {
    return request.get('/orders/', {params});
}
export function getOrdersById(id) {
    return request.get('/orders/'+id);
}
export function createOrders(data) {
    return request.post('/orders/create', data);
}
export function deleteOrdersById(id) {
    return request.post('/orders/delete/'+id);
}
export function updateOrders(data) {
    return request.post('/orders/update', data);
}